#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_ulipad_py.dpatch by LI Daobing <lidaobing@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: debug.txt and error.txt can't generated from a readonly file
## DP: system

@DPATCH@
diff -urNad ulipad-3.6+r2037~/UliPad.py ulipad-3.6+r2037/UliPad.py
--- ulipad-3.6+r2037~/UliPad.py	2007-03-06 08:38:09.000000000 +0800
+++ ulipad-3.6+r2037/UliPad.py	2007-03-20 00:49:16.000000000 +0800
@@ -52,8 +52,8 @@
 
 common.print_time('begin...', DEBUG)
 
-Debug.debug = Debug.Debug(os.path.join(workpath, 'debug.txt'), debugflag)
-Debug.error = Debug.Debug(os.path.join(workpath, 'error.txt'), True)
+Debug.debug = Debug.Debug(os.path.join(common.getHomeDir(), 'debug.txt'), debugflag)
+Debug.error = Debug.Debug(os.path.join(common.getHomeDir(), 'error.txt'), True)
 
 #hook global exception
 def myexcepthook(type, value, tb):
